import request from '../utils/request';

export function Add({ jlid, inrt, sxrq }) {
    var data = new FormData()
    data.append('jlid', jlid)
    data.append('inrt', inrt)
    data.append('sxrq', sxrq)
    return request(`/api/restricted/CompEditInrt/Add`, {
        method: 'POST',
        body: data
    });
}

export function Edit({ jlid, datas }) {
    var data = new FormData()
    data.append('jlid', jlid)
    data.append('datas', JSON.stringify(datas))
    return request(`/api/restricted/CompEditInrt/Edit`, {
        method: 'POST',
        body: data
    });
}